﻿using System;
using System.Collections.Generic;

namespace MessagePack.Formatters
{
	// Token: 0x02000010 RID: 16
	public class GenericCollectionFormatter<TElement, TCollection> : CollectionFormatterBase<TElement, TCollection> where TCollection : ICollection<TElement>, new()
	{
		// Token: 0x0600002F RID: 47 RVA: 0x00002B82 File Offset: 0x00000F82
		protected override TCollection Create(int count)
		{
			return Activator.CreateInstance<TCollection>();
		}

		// Token: 0x06000030 RID: 48 RVA: 0x00002B89 File Offset: 0x00000F89
		protected override void Add(TCollection collection, int index, TElement value)
		{
			collection.Add(value);
		}
	}
}
